---
title: goodfet.spiflash
---
<h1>goodfet.spiflash</h1>

<p></p>

<h2>Client</h2>
<p><pre>Usage: goodfet.spiflash verb [objects]

goodfet.spiflash info
goodfet.spiflash dump $foo.rom [0x$start 0x$stop]
goodfet.spiflash erase
goodfet.spiflash flash $foo.rom [0x$start 0x$stop]
goodfet.spiflash verify $foo.rom [0x$start 0x$stop]
goodfet.spiflash peek 0x$start [0x$stop]
goodfet.spiflash poke 0x$adr 0x$val
</pre></p>

<h2>Pinout</h2>
<p>
	<table border="1">
		<tr><th style="width: 5em;">Name</th><th colspan="2" style="width: 3.5em;">Pin</th><th style="width: 5em;">Name</th></tr>
		<tr><td>MISO</td>	<td>1</td><td>2</td>	<td>Vcc</td></tr>
		<tr><td>MOSI</td>	<td>3</td><td>4</td>	<td>Vcc</td></tr>
		<tr><td>SS</td>	<td>5</td><td>6</td>	<td>	</td></tr>
		<tr><td>SCK</td>	<td>7</td><td>8</td>	<td></td></tr>
		<tr><td>GND</td>	<td>9</td><td>10</td>	<td>	</td></tr>
		<tr><td></td>	<td>11</td><td>12</td>	<td>    </td></tr>
		<tr><td></td>	<td>13</td><td>14</td>	<td>    </td></tr>
	</table>
</p>

<h2>Notes</h2>

<p>Unlike I2C and SPI EEPROM devices, SPI Flash devices rarely have
internal pulling resistors on the !WP and !HOLD pins.  You must explicitly
pull these up.</p>
